﻿using System;

namespace Fast.Extensions.RabbitMQ
{
    /// <summary>
    /// 连接池
    /// </summary>
    public interface IConnectionPool : IDisposable
    {
        /// <summary>
        /// 获取持久连接
        /// </summary>
        /// <param name="connectionName"></param>
        /// <returns></returns>
        IPersistentConnection Get(string connectionName = null);
    }
}
